﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace University.Workshop.WinApp
{
    public partial class InsertDetail : Form
    {
        public InsertDetail()
        {
            InitializeComponent();
        }

        private void bInsert_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txtConcept.Text) || string.IsNullOrEmpty(txtMount.Text))
            {
                MessageBox.Show("All input requiere...");
            }
            else
            {
                try
                {
                    Convert.ToInt32(txtMount.Text);
                    this.Close();
                }
                catch
                {
                    MessageBox.Show("the mount is incorrect..");
                }
            }
        }
        public string GetConcept() 
        {
            return txtConcept.Text;
        }
        public string GetMount() 
        {
            return txtMount.Text;
        }
    }
}
